<template>
  <div class="my-table">
    <el-table max-height="650" :data="data" :row-class-name="tableRowClassName">
      <!-- <el-table-column fixed prop="time" label="时间">
      </el-table-column> -->
      <my-column v-for="(item,index) in col" :key="index" :col="item" />
    </el-table>
  </div>
</template>

<script>
import MyColumn from './MyColumn'
export default {
  components: {
    MyColumn
  },
  props: {
    col: {
      type: Array,
      default: () => {
        return []
      }
    },
    data: {
      type: Array,
      default: () => {
        return []
      }
    }
  }
}

</script>
